package com.interagriculture.utils;

import com.interagriculture.entity.AdminInfo;

/**
 * @author 11 2024/11/14
 */
public class ThreadLocalUtil {
    private static final ThreadLocal<AdminInfo> THREAD_LOCAL = new ThreadLocal<>();

    public static AdminInfo get() {
        return THREAD_LOCAL.get();
    }

    public static void set(AdminInfo adminInfo) {
        THREAD_LOCAL.set(adminInfo);
    }

    public static void remove() {
        THREAD_LOCAL.remove();
    }
}
